package com.sirun.ble.utils;

import android.annotation.SuppressLint;
import android.content.Context;
import android.os.Build;
import android.telephony.TelephonyManager;

import java.util.Locale;

/**
 * @author : hzw
 */
public class AwSystemUtil {

    public AwSystemUtil() {
    }

    public static String getSystemLanguage() {
        return Locale.getDefault().getLanguage();
    }

    public static Locale[] getSystemLanguageList() {
        return Locale.getAvailableLocales();
    }

    public static String getSystemVersion() {
        return Build.VERSION.RELEASE;
    }

    public static String getSystemModel() {
        return Build.MODEL;
    }

    public static String getDeviceBrand() {
        return Build.BRAND;
    }

    @SuppressLint({"MissingPermission", "WrongConstant"})
    public static String getIMEI(Context var0) {
        TelephonyManager var1;
        return (var1 = (TelephonyManager)var0.getSystemService("phone")) != null ? var1.getDeviceId() : null;
    }
}
